<div class="header">
  <back-Btn></back-Btn>
  材料出库
</div>
<div class="container finance task-review">
  <div class="list f_sk">
    <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
      date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
    <div class="section">
      <div class="list-item flex">
        <div class="w40 c9">仓库名称 </div>
        <div class="w60" relative-module="Material_MaterialWarehouse" module-no="{{TaskReview.result.warehouseNo }}">
          {{TaskReview.result.warehouseName}}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.projectName">
        <div class="w40 c9">所属项目 </div>
        <div class="w60" relative-module="Xm_ProjectStore" module-no="{{TaskReview.result.projectNo }}">
          {{TaskReview.result.projectName}}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.issuer">
        <div class="w40 c9">发料人 </div>
        <div class="w60">{{ TaskReview.result.issuer }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.pickingDate">
        <div class="w40 c9">出库日期 </div>
        <div class="w60">{{ TaskReview.result.pickingDate|dateFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">出库次数 </div>
        <div class="w60">{{ TaskReview.result.pickingQuantity }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">出库金额 </div>
        <div class="w60">{{ TaskReview.result.totalWorthAmount|NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">已出库 </div>
        <div class="w60" ng-switch="TaskReview.result.completion">
          <div ng-switch-when="0">
            否
          </div>
          <div ng-switch-when="1">
            是
          </div>
        </div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.remark">
        <div class="w40 c9">备注 </div>
        <div class="w60">{{ TaskReview.result.remark }}
        </div>
      </div>
      <!-- 自定义字段 -->
      <div checkuser-define field-map="TaskReview.result.customFields"></div>
      <!-- 附件 -->
      <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment"></div>
      <div class="list table-list" ng-show="TaskReview.result.details.length">
        <div class="info-title">出库明细 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.details">
          <div class="list-item">
            <div class="item-label">领料人 </div>
            <div class="flow-content">{{ item.picker }}</div>
          </div>
          <div class="list-item" ng-show="item.pickerTeam">
            <div class="item-label">领料班组 </div>
            <div class="flow-content">{{ item.pickerTeam }}</div>
          </div>
          <div class="list-item" ng-show="item.usePart">
            <div class="item-label">施工范围 </div>
            <div class="flow-content">{{ item.usePart }}</div>
          </div>
          <div class="list-item" ng-show="item.subprojectName">
            <div class="item-label">分部工程 </div>
            <div class="flow-content">{{ item.subprojectName }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">出库金额 </div>
            <div class="flow-content">{{ item.totalAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">出库状态 </div>
            <div class="flow-content" ng-switch="item.status">
              <div ng-switch-when="0">
                未出库
              </div>
              <div ng-switch-when="1">
                已出库
              </div>
              <div ng-switch-when="2">
                已作废
              </div>
            </div>
          </div>
          <div class="list-item" ng-show="item.remarks">
            <div class="item-label">备注 </div>
            <div class="flow-content">{{ item.remarks }}</div>
          </div>
          <div class="list table-list" ng-show="item.details.length">
            <div class="info-title">材料明细 </div>
            <div class="table-item" ng-repeat="subitem in item.details">
              <div class="list-item">
                <div class="item-label">材料名称 </div>
                <div class="flow-content">{{ subitem.name }}</div>
              </div>
              <div class="list-item" ng-show="subitem.spec">
                <div class="item-label">规格型号 </div>
                <div class="flow-content">{{ subitem.spec }}</div>
              </div>
              <div class="list-item" ng-show="subitem.brand">
                <div class="item-label">品牌特性 </div>
                <div class="flow-content">{{ subitem.brand }}</div>
              </div>
              <div class="list-item">
                <div class="item-label">当前库存 </div>
                <div class="flow-content">{{ subitem.inventoryQuantity }}{{ subitem.unit }}</div>
              </div>
              <div class="list-item">
                <div class="item-label">出库数量 </div>
                <div class="flow-content">{{ subitem.quantity }}{{ subitem.unit }}</div>
              </div>
              <div class="list-item">
                <div class="item-label">单价(元) </div>
                <div class="flow-content">{{ subitem.price|NBFmt }}</div>
              </div>
              <div class="list-item">
                <div class="item-label">总价(元) </div>
                <div class="flow-content">{{ subitem.totalPrice |NBFmt }}</div>
              </div>
            </div>
          </div>

        </div>
      </div>
      <!-- 审查日志 -->
      <div log-list taskid="process_id"></div>
    </div>
  </div>